package dd.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;

import dd.control.CreateEventButtonController;
import dd.control.MainScreenButtonController;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ResultScreen extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ResultScreen frame = new ResultScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ResultScreen() {
		setTitle("Result");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel EventNameLabel = new JLabel("EventName");
		EventNameLabel.setBounds(180, 6, 96, 16);
		contentPane.add(EventNameLabel);
		
		JLabel ResultViewLabel = new JLabel("Result View");
		ResultViewLabel.setBounds(179, 34, 81, 16);
		contentPane.add(ResultViewLabel);
		
		JPanel panel = new JPanel();
		panel.setBounds(34, 92, 371, 169);
		contentPane.add(panel);
		
		JButton btnMainScreen = new JButton("Main Screen");
		btnMainScreen.addActionListener(new MainScreenButtonController(this));
		btnMainScreen.setBounds(267, 51, 117, 29);
		contentPane.add(btnMainScreen);
	}
}
